package com.sangananitsolution.fragments;


import java.util.ArrayList;

import com.sangananitsolution.gogoproject.R;

import LoadImgfromUrl.ImageLoader;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class showImageinNewPage extends Fragment {
	ArrayList<String>images;
	public showImageinNewPage(ArrayList<String> image) {
		this.images=image;
	}
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.showimageinnewpage, container,
				false);
		
		String image_url;
		ImageView imageView = (ImageView) view
				.findViewById(R.id.imageView1showimageinnewpage);

		try {
			// Image url
			image_url = "http://garagesalesagogo.com.au//"
					+ images.get(0).replace("~/", "");

		} catch (Exception e) {
			image_url = "http://garagesalesagogo.com.au//ProductImages/201522017214_986.png";

		}

		int loader = R.drawable.ic_launcher;
		ImageLoader imageLoader = new ImageLoader(getActivity());

		imageLoader.DisplayImage(image_url, loader, imageView);
		
		return view;
	}
	
	
	
	
	
	
	
	
	
	
	

}
